<%-- 
    Document   : adminManageSong
    Created on : Apr 1, 2013, 9:03:21 PM
    Author     : tiwtiger
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<script type="text/javascript" src="js/commonjs.js"></script>
<script type="text/javascript">
    function transformXMLwithXSTL(xmlFile, xsltFile){
        var xmlPath = "${pageContext.request.contextPath}"+xmlFile;
        var xsltPath = "${pageContext.request.contextPath}"+xsltFile;
        var xml=loadXMLDoc(xmlPath);
        var xsl=loadXMLDoc(xsltPath);
        xsltProcessor=new XSLTProcessor();
        xsltProcessor.importStylesheet(xsl);
        resultDocument = xsltProcessor.transformToFragment(xml,document);
        document.getElementById('result').appendChild(resultDocument);
    }
</script>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin Song Page</title>
    </head>
    <body onload="transformXMLwithXSTL('/xml/Songs.xml', '/xsl/songManage.xsl')">
        <div id="result"/>

    </body>
</html>